package patterns;

import interfaces.Printer;

/**
 * Created by Administrator on 15-2-6.
 */
public class PrinterFactorDemo {
    public static void main(String args[]){
        Printer pt = PrintFactor.getPrinter();
        pt.queueJob("Think in Java");
        pt.queueJob("Effective Java");
        pt.queueJob("DBA思想的天空");
        pt.displayQueue();
        pt.print();
        pt.queueJob("Oracle编程");
        pt.queueJob("MySQL性能优化指南");
        pt.print();
        pt.print();
        pt.queueJob("Oracle编程");
        pt.displayQueue();
        pt.print();
    }
}
